/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-07-26     Tian Yiqing  the first version
 */

#ifndef __DRV_COMMON__
#define __DRV_COMMON__

#include <rtthread.h>
#include <rthw.h>
#include <rtdevice.h>
#include <board.h>

#ifdef __cplusplus
extern "C" {
#endif

extern void rt_hw_us_delay(rt_uint32_t us);
extern uint32_t DecToBcd(uint32_t dec);
extern uint32_t BcdToDec(uint32_t bcd);

#ifdef __cplusplus
}
#endif

#endif /* __DRV_COMMON__ */
